import { useCount } from "./components/useCounter";

function App() {
  const { count, inc, dec, set, reset } = useCount(5)
  return (<div>
      <p>count：{count}</p>
      <button onClick={()=>inc()}>inc</button>
      <button onClick={()=>dec()}>dec</button>
      <button onClick={()=>set(100)}>set</button>
      <button onClick={reset}>reset</button>

  </div>  );
}

export default App;